package cn.cy.creation.d02;

public class RealizeType implements Cloneable {

    RealizeType(String name) {
        this.name = name;
        System.out.println("具体原型对象创建成功...");
    }

    private String name;

    public void setName(String name) {
        this.name = name;
    }

    public RealizeType clone() throws CloneNotSupportedException {
        System.out.println("具体原型对象复制成功...");
        return (RealizeType) super.clone();
    }

    public void show() {
        System.out.println("我是" + this.name);
    }

}
